package com.vito.framework.system.security.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.vito.framework.system.menu.model.MenuBean;
import com.vito.framework.system.role.model.RoleBean;
import com.vito.framework.system.security.model.UserSession;
import com.vito.framework.system.user.model.UserBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface SecurityMapper extends BaseMapper<UserSession> {
	int countUserByAccount(Map<String, Object> paramMap);

	int countUserByAccountAndPassword(Map<String, Object> paramMap);

	UserBean queryLoginUser(Map<String, Object> paramMap);

	List<RoleBean> queryLoginUserRole(Map<String, Object> paramMap);

	List<MenuBean> listMenuByUserId(@Param("userId") String userId);
}
